﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Input;


namespace AfterCaveStory.Core.Scenes
{
    class Pause
    {

        GameWindow Window;
        Texture2D fundo;
        public bool pausado;

        public Pause()
        {
            this.Window = Game1.Self.Window;
            fundo = Game1.Self.Content.Load<Texture2D>("Tela Pause");
        }

        public void update(GameTime gameTime)
        {
            if (Controller.KeyPressed(Keys.P))
            {
                pausado = false;
            }
        }

        public void draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            if (pausado == true)
            {
                spriteBatch.Draw(fundo, new Rectangle(0, 0, Window.ClientBounds.Width, Window.ClientBounds.Height), Color.White);
            }
        }

        public void terminate()
        {
            
        }
    }
}
